package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Food;

import java.util.Date;
import java.util.List;

public interface FoodDao {
    Long findCountByFoodName(String foodName);

    void editByFoodName(Food food);

    void add(Food food);

    Page<Food> selectByCondition(String queryString);

    List<Food> findAll();

//    Food findFoodByOrderDate(Date date);

    int findInterventionIdByOrderDate(Date date);

    List<String> findFoodNameByInterventionId(int id);

    void edit(Food food);

    Food findById(Integer id);

    void addFood(Food food);

    void deleteById(Integer foodId);
}
